xsm: fix printf format string for strlen result
authorIan Campbell <ian.campbell@citrix.com>
Tue, 30 Apr 2013 07:08:08 +0000 (09:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Apr 2013 07:08:08 +0000 (09:08 +0200)
commitb3f685edb7b8d040182b9e4d83bf34f2883cc385
tree561e7e9279fe311e856957b8015d357dba07a6fe
parent0352856935590a6b740306f2559fe204908472c9
xsm: fix printf format string for strlen result

strlen returns size_t:

policydb.c: In function \91policydb_read\92:
policydb.c:1779: error: format \91%lu\92 expects type \91long unsigned int\92, but argument 3 has type \91size_t\92

This is probably benign on 64-bit x86 but was found by Dharshini on 32-bit Xen
4.2.x. I expect it affects ARM too.

Reported-by: Dharshini Tharmaraj <dharshinitharmaraj@gmail.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/ss/policydb.c